package com.alter.system.service.impl;

import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alter.model.SeUser;
import com.alter.system.dao.SEUserDao;
import com.alter.system.service.SysbaseService;

@Service
@Transactional
public class SysbaseServiceImpl implements SysbaseService {

    @Autowired
    private SEUserDao userDao;

    @Override
    public SeUser searchSeUserByName(String name) {
	return userDao.findUnique(Restrictions.eq("name", name));
    }

}
